package com.icexxx.ice_notepad;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MyFrame extends JFrame {

    /**
     * 序列化
     */
    private static final long serialVersionUID = -3627651983777067183L;

    private static JFrame frame;

    public static JFrame getFrame() {
        return frame;
    }

    @Override
    protected void frameInit() {
        super.frameInit();
        setTitle("窗口标题");
        setSize(1500, 900);
        setLocation(80, 50);
        BorderLayout borderLayout = new BorderLayout();
        setLayout(borderLayout);
        JPanel mainPanel = PanelManager.createMainPanel();
        this.add(mainPanel, BorderLayout.CENTER);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible(true);
        frame = this;
    }
}
